﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    public class OrderInfoDAL:BaseDAL<OrderInfo>,IOrderInfoDAL
    {
        private UnmanContexts _dbContext;
        public OrderInfoDAL(UnmanContexts dbContext): base(dbContext)
        {
            _dbContext = dbContext;
        }

        /// <summary>
        /// 获取订单表所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<OrderInfo> GetOrderInfos()
        {
            return _dbContext.OrderInfo;
        }

    }
}
